﻿using PLCS.Application.Contracts.ConfigApp.Dtos;
using PLCS.Application.Contracts.EquipmentApp.Dtos;

namespace PLCS.Application.Contracts.ConfigApp;

public interface IConfigAppService : ICrudAppService<ConfigDto, Guid, PagedResultRequestDto, ConfigEditDto>
{
    Task<PagedResultDto<ConfigDto>> GetListBySearchAsync(PagedResultRequestDto input, string? name);

    Task<string> GetConfigByNameAsync(string name);

    Task<IEnumerable<ConfigDto>> GetConfigListAsync();

    Task UpdateAsync(ConfigEditDto config);
}